import { Typography,Button ,Flex} from "antd";



const ErrorBoundary = () => {
    const reload = () => {
        window.location.reload();
    }
    return <Flex vertical gap={30} align="center" style={{ padding: 15 }}>
        <Typography.Title>
            出现未知错误，请重试
        </Typography.Title>
        <Button type="primary" onClick={reload}>reload</Button>
    </Flex>
}

export default ErrorBoundary;